import lejos.nxt.ColorSensor;
import lejos.nxt.SensorPort;
import lejos.robotics.Color;


public class LejosColorSensor {

	private static ColorSensor cs=new ColorSensor(SensorPort.S4);
	
	public static int inputCOLORIDIN(){	
		return cs.getColorID();
	}
	
	public static void outputCOLORON(){
		cs.setFloodlight(2);
		cs.setFloodlight(true);
	}
	
	public static void outputCOLOROFF(){
		cs.setFloodlight(false);
	}
	public static void outputCOLORIDOUT(int id){
		cs.setFloodlight(id);
	}
	
}

